import request from "@/utils/request";

// 查询监控设备列表
export function getFloorHvac(id) {
  return request({
    url: "/ruoyi-device/hvac/getCam/" + id,
    method: "get",
  });
}
// 查询监控设备列表
export function listHvac(query) {
  return request({
    url: "/ruoyi-device/hvac/list",
    method: "get",
    params: query,
  });
}

// 查询监控设备详细
export function getHvac(id) {
  return request({
    url: "/ruoyi-device/hvac/" + id,
    method: "get",
  });
}

// 新增监控设备
export function addHvac(data) {
  return request({
    url: "/ruoyi-device/hvac",
    method: "post",
    data: data,
  });
}

// 修改监控设备
export function updateHvac(data) {
  return request({
    url: "/ruoyi-device/hvac",
    method: "put",
    data: data,
  });
}

// 删除监控设备
export function delHvac(id) {
  return request({
    url: "/ruoyi-device/hvac/" + id,
    method: "delete",
  });
}
